package com.ordersystem.mappers;

import com.ordersystem.domain.Order;
import com.ordersystem.domain.OrderManageData;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author : asus1020
 * @version : [v1.0]
 * @className : OrderMapper
 * @description : [描述说明该类的功能]
 * @createTime : [2022/3/26 16:41]
 * @updateUser : asus1020
 * @updateTime : [2022/3/26 16:41]
 * @updateRemark : [描述说明本次修改内容]
 */
@Repository
public interface OrderMapper {
    int addOrder(Order order);
    int payOrder(@Param("oid") Integer oid,@Param("state") Integer state);
    int finishOrder(@Param("oid") Integer oid,@Param("state") boolean state);
    List<Order>findOrders(@Param("query") String query,@Param("type") Integer type);
    List<Order>findOrdersByUid(Integer uid);
    List<OrderManageData>getOrderManageData(Integer dataNum);
    Order findOrderByOid(Integer oid);

}
